#api ---json格式返回
# code --- 程序状态码
# data   --  返回的数据
# message  --  对此次状态返回的说明



# def my_response(data, message = "success!",code = 0):
# Lib/resp.py
def my_response(data=None, message="success!", code=0):
    return {
        "code": code,
        "message": message,
        "data": data
    }
    # return {
    #     "code": 1,
    #     "message": "数据格式异常",
    #     "data": data
    # }




